<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
        </div>
    </div>
    <footer class="footer container">
        &copy; <?php echo date('Y'); ?> <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a>.
    <?php _e('由 <a href="http://www.typecho.org">Typecho</a> 强力驱动'); ?>.
    </footer>
    <?php $this->footer(); ?>
</body>
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="//cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(function() {
    //当鼠标滑入时将div的class换成divOver
    $('.xg_photo').hover(function() {
        $(this).addClass('d_over');
    }, function() {
        //鼠标离开时移除divOver样式
        $(this).removeClass('d_over');
    });

    //鼠标悬停图片加阴影
    $('.xg_photo').find('.thumbnail').hover(function() {
        $(this).addClass('img_over');
    },function(){
        $(this).removeClass('img_over');
    });

    //点击跳转
    $('.xg_photo').find('.col-sm-3').click(function() {
        window.open($(this).attr('src'));
    });

    // 跳转导航选中
    $(document).ready(function(){
        $("#navbar a").each(function(){  
            $this = $(this);  
            if($this[0].href==String(window.location)){ 
                $(this).parent("li").addClass("active");
            }  
        });
    });
});
</script>
</html>
